﻿@(Html.DevExtreme().TreeView()
    .DataSource(d => d.OData()
        .Url("https://js.devexpress.com/Demos/WidgetsGallery/odata/HierarchicalItems")
    )
    .DataStructure(TreeViewDataStructure.Plain)
    .KeyExpr("Id")
    .DisplayExpr("Name")
    .ParentIdExpr("CategoryId")
    .HasItemsExpr("IsGroup")
    .VirtualModeEnabled(true)
)
